package com.xhh.nphm.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhh.nphm.system.domain.DeptDeadLine;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface DeptDeadLineDao extends BaseMapper<DeptDeadLine> {

    @Select("select top 1 id,deptNo,delayDays from tm_dept_backlimit_config where isdel=0 and deptNo=#{deptNo} order by id desc")
    DeptDeadLine findBydeptNo(@Param("deptNo") String deptNo);
}
